package com.xiaohan.xhmall.member.feign;

import com.xiaohan.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: xhmall
 * @description: 通过Openfeign实现对优惠券服务的RPC远程调用
 * @author: 韩小豪
 * @create: 2025-02-03 14:21
 **/

@FeignClient("xhmall-coupon")   //根据该名称去服务注册中心中获取目标服务的地址实现调用
public interface CouponServiceFeign {
	/**
	 * 测试调用优惠券服务中的接口
	 * @return
	 */
	@RequestMapping("/coupon/coupon/member/list")
	R getMemberCoupons();
}
